package com.autonomous_printer.service;


import com.autonomous_printer.pojo.File;

import java.io.IOException;
import java.io.InputStream;

public interface FileService {


    /**
     * 上传文件
     * @param file 文件
     * @return id
     */
    int upload(File file, InputStream fileSteam) throws IOException;


    /**
     * word转pdf
     * @param filepath
     */
    String convertToPDF(String filepath);

    /**
     * 获取pdf页数
     * @param filepath
     * @return
     */
    int getPdfPage(String filepath);
}
